//保存功能测试方法

var dao = require("../service/mongooseDao");

var config = {
	database: {
		host : "localhost",
		port : 27017,
		db_name : "nodejs_demo"
	}
};

dao.connect(config);

var music = new dao.model.musicModel({
	name : "测试音乐1",
	musicLength : 10099,
	introduce : "R U OK"
});

music.save(function(err){
	if(err) throw err;
	process.exit(-1);
});
